<template>
  <!-- :style="{ paddingTop: `${StatusbarHeight}px` }" -->
  <div id="app" >
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-wechat-title='$route.meta.title' :key="key" v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>


export default {
  name: 'App',
  computed: {
    key() {
      return this.$route.name ? this.$route.name + new Date() : this.$route + new Date;

    }
  },
  data() {
    return {
      StatusbarHeight: 0
    }
  },
  mounted() {
    // if (window.plus) {
    //   setTimeout(() => {
    //     // console.log(plus.navigator.getStatusbarHeight());
    //     this.StatusbarHeight = plus.navigator.getStatusbarHeight()
    //   }, 1000)
    // }
  }
}
</script>

<style>
#app {}

.van-dialog--round-button .van-dialog__confirm {
  border-radius: 0.16rem !important;
}
</style>
